14. Lesson Conclusion
Lesson Conclusion
ND079 JPND C3 L3 A12 Lesson Conclusion V3
Glossary
Automatic module: A module created by placing a non-modular jar on the modulepath. Has the same name as the jar, unless another name is provided by the Automatic-Module-Name
property in the MANIFEST.MF
.
Circular Dependency: A loop created when a module depends on another module, which in turn depends on the first module. Will not compile.
Classpath: The location the Java compiler looks to find all your class files when compiling a Java project. Prior to Modules, this was the only location to provide class files.
Compile-time Access: Required for actions validated by the compiler, such as creating instances of classes and calling their methods.
Modular Jar: A standard JAR file that also contains a module-info.class.
Module: An organizational construct one tier above a package. It contains multiple packages and uses a module descriptor to identify which of those packages it makes available to other modules.
Module Descriptor: A Java class that provides information about the module. It is stored in a class called module-info.java
and compiles into a class file called module-info.class
.
Modulepath: The location the Java compiler looks to find all modules when compiling a Java project. Any non-modular jars placed on the modulepath will become automatic modules.
Runtime Access: Required for actions not validated by the compiler, such as retrieving and executing the methods of a class via the Reflection API.
Unnamed Module: The single module containing all the contents of the classpath. Inaccessible to named modules.